package com.huawei.csi.tool.validation;

import org.junit.jupiter.api.Test;

import java.nio.file.Paths;

import static org.junit.jupiter.api.Assertions.assertEquals;

class LicenseVerifyCJMainController {

    @Test
    void getOsiApprovedLicenseName() {
        String name = LicenseVerify.getInstance().verify(Paths.get("LICENSE"));
        if (name != null) {
            assertEquals("MIT-License", name);
        }

    }
}